export default [
  {
    path: '/',
    component: '@/layouts/index',
    routes: [
      { path: '/', component: '@/pages/Index/index' },
      {
        path: '/user',
        wrappers: ['@/wrappers/auth'],
        routes: [
          {
            path: '/user/one/:id?',
            component: '@/pages/Index/index',
            title: '用户页面一',
          }, //?可以不传，undefined
          {
            path: '/user/two',
            component: '@/pages/user',
            title: '用户页面二',
          },
          { component: '@/pages/404' },
        ],
      },
      { path: '/dva', component: '@/pages/dva' },
    ],
  },
  { path: '/list', redirect: '/user/one' },
  { component: '@/pages/404' },
];
